package com.kexun.platform;

public class QQConfig {

    private final static String phb = "https://c.y.qq.com/v8/fcg-bin/fcg_v8_toplist_cp.fcg?topid=%s&platform=yqq.json&format=json&inCharset=utf-8&outCharset=utf-8";

    private final static String search = "https://c.y.qq.com/soso/fcgi-bin/client_search_cp";

    public static String getPhb(int topId) {
        return String.format(phb, topId);
    }

    public static String getSearch(String name) {
        return search + "?aggr=1&cr=1&flag_qc=0&p=1&n=60&w=" + name;
    }

}
